Additional Regular Expression Search Examples

image\regex2_shg.gif

image\relicon1.gif Also see

Additional Regular Expression Search Examples

Search String

Match

L[]

line, list, lane, LogVar1 (when case sensitive is off)

[on]

non, no, on

\[

[

+[a-z]

abcdefghijklomopqrstuvwxyz
Note: If used with Case Sensitive off, it will also match ABCDEFGHIJKLMNOPQRSTUVWXYZ

[a-zA-Z└- ]

matches the same as the +[a-z] example above (regardless of case sensitive flag) and also all other special characters for Western European languages. See the Binary Mode dialog for the order of those characters in the ASCII table.

+(one|two|three)

one, onetwo, twothree

?(one|two|three)

one, two, three

Windows*[\0- ]95

Will match up to 32767 characters (on several lines) between Windows and 95.

All * replaces

all the replaces (the * character matches all chars on the same line unless a [] expression overrides that - see above)

/**[\0- ]*/

Matches C style comments on several lines if necessary (up to 4069 characters)

01*[0-9].htm

01346.htm, 01.htm, 016965.htm

*[ab]c

c, abc, bac, abbc, bbac

 

?include (<|\[)+[a-z0-9_].h*(p)+[\]>]

Matches:
   #include [stdafx.h]
   #include <dos.h>
   #include [my_include.hpp]
   #include [sr32.h]